package com.gw.booking.dto.common;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.constraints.Pattern;

public class CaptchaVerifyDto {
	@ApiModelProperty(value="手机号", required = true)
	@NotEmpty
	@Pattern(regexp = "[0-9]{11}")
	private String mobile;

	@ApiModelProperty(value = "类型【forget_password:找回密码;change_password:修改密码;change_email:修改邮箱;" +
			"change_mobile:修改手机号;pay_store_order:商城订单支付;binding_member:绑定成员;register_mobile:注册会员】"
			, allowableValues = "forget_password,change_password,change_email,change_mobile,pay_store_order,binding_member,register_mobile")
	private String type;

	@ApiModelProperty(value="验证码", required = true)
	@NotEmpty
	@Length(min = 6, max = 6)
	private String captcha;

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}
}
